const path = require("path")
const RunPlugin = require("./plugins/run-plugin")
const DonePlugin = require("./plugins/done-plugin")
module.exports = {
    mode: "development",
    devtool: false, // 不要生成 源码文件
    entry: {
        entry1: './src/entry1.js',
        entry2: './src/entry2.js'
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                use: [
                    path.resolve(__dirname, "loaders/logger1.js"),
                    path.resolve(__dirname, "loaders/logger2.js")
                ]
            }
        ]
    },
    plugins: [
        new RunPlugin(),
        new DonePlugin()
    ]
}